<?php if ($_GET['pg'] == 'categories'){?>
<div id="rate"><a href="../../pages/4/plata_in_rate.html"><img alt="" src="../../templates/default/images/rate.png" width="230" height="163"></a></div>
<?php } elseif ($_GET['pg'] == 'pages' || $_GET['pg'] == 'news' || $_GET['pg'] == 'top'){?>
<div id="rate"><a href="../../pages/4/plata_in_rate.html"><img alt="" src="../../templates/default/images/rate.png" width="230" height="163"></a></div>
<?php } elseif ($_GET['pg'] == 'offers'){?>
<div id="rate"><a href="../../../pages/4/plata_in_rate.html"><img alt="" src="../../../templates/default/images/rate.png" width="230" height="163"/></a></div>
<?php } else {?>
<div id="rate"><a href="pages/4/plata_in_rate.html"><img alt="" src="templates/default/images/rate.png" width="230" height="163"></a></div>
<?php }?>